//
//  AboutUsPdfCtry.m
//  ZHZtest
//
//  Created by 李彦宏 on 2017/12/20.
//  Copyright © 2017年 LYH. All rights reserved.
//

#import "AboutUsPdfCtry.h"

@interface AboutUsPdfCtry ()<UIWebViewDelegate>


@end

@implementation AboutUsPdfCtry

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.view setBackgroundColor:[UIColor whiteColor]];
    [self loadFile];
    // Do any additional setup after loading the view from its nib.
}
#pragma mark - 加载文件
- (void)loadFile
{
    //添加webView
    UIWebView *webView = [[UIWebView alloc] init];
    webView.scrollView.backgroundColor=[UIColor whiteColor];
    
    webView.frame = self.view.bounds;
    [self.view addSubview:webView];
    NSString *path = [[NSBundle mainBundle] pathForResource:@"关于口碑课程" ofType:@"docx"];
   NSURL *url = [NSURL fileURLWithPath:path];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    [webView loadRequest:request];
    [webView sizeToFit];
     webView.scalesPageToFit = YES;
     webView.delegate = self;
    
    [self.view addSubview:webView];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
